package com.vcc.service.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.vcc.data.entity.Role;
import com.vcc.data.entity.TaskLogInfo;
import com.vcc.service.boss.response.taskLog.BossTaskLogInfoVo;
import com.vcc.service.client.vo.taskLog.TaskLogInfoVo;

import java.math.BigDecimal;

public interface TaskLogInfoService extends IService<TaskLogInfo> {

    Boolean completedLogInfo(Long id,Integer status,String remark);

    Boolean completedLogInfo(Long id,String requestId,Integer status,String remark);


    Boolean setCardStatus(Long id, String cardStatus, BigDecimal cardBalance);


    Page<TaskLogInfoVo> clientPaging(Integer pageNumber, Integer pageSize, Long userId, Role role, Long taskId, Long targetUserId, Long cardTypeId, String cardNumber, Integer status, String startDate, String endDate);

    Page<BossTaskLogInfoVo> bossPaging(Integer pageNumber, Integer pageSize, Long taskId);


    Long countByTaskIdAndStatus(Long taskId, Integer status);
}
